package com.kylin.commodity.api.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * 新建商品请求
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年05月28日 08:02
 */
@Data
@Builder
@ApiModel("新建商品请求参数")
public final class NewCommodityReqDTO implements Serializable {

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "副标题")
    String subtitle;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "价格(分)")
    private Long price;

    @ApiModelProperty(value = "库存")
    private Integer inventory;

    @ApiModelProperty(value = "封面图片")
    String coverUrl;

    @ApiModelProperty(value = "H5商品说明")
    String description;
}
